package bargain.server;

import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.apache.ibatis.annotations.Mapper;
import org.dromara.hmily.spring.annotation.RefererAnnotationBeanPostProcessor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.config.BeanPostProcessor;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

/**
 * @ClassName BargainServerA
 * @Description
 * @Author Jingxiao.Ye
 * @Date 2022/1/4 下午9:31
 * @Version V1.0
 * @Since JDK 11
 */
@SpringBootApplication
@EnableDubbo
@MapperScan(basePackages = "bargain.server.dao")
public class BargainServerA {

    public static void main(String[] args) {
        SpringApplication.run(BargainServerA.class,args);
    }

    @Bean
    public BeanPostProcessor refererAnnotationBeanPostProcessor() {
        return new RefererAnnotationBeanPostProcessor();
    }
}
